package edu.java.homework.hw06.products;

public enum Product {
    
    
    VEGETABLE,
    FRUIT,
    MEAT_PRODUCT,
    MILK_PRODUCT,
    EGG_PRODUCT,
    SPICE;
    
    // --- Instance Variables --------------------------------------------------
    private Vegetable vegetable=null;
    private Fruit fruit=null;
    private MeatProduct meatProduct=null;
    private MilkProduct milkProduct=null;
    private EggProduct eggProduct=null;
    private Spice spice=null;
    
    // --- Constructors --------------------------------------------------------
    private Product(){
	
    }
    private Product(Vegetable vegetable){
	this.vegetable=vegetable;
	fruit=null;
	meatProduct=null;
	milkProduct=null;
	eggProduct=null;
	spice=null;
    }
    private Product(Fruit fruit) {
	this.fruit = fruit;
	vegetable=null;
	meatProduct=null;
	milkProduct=null;
	eggProduct=null;
	spice=null;
    }
    private Product(MeatProduct meatProduct) {
	this.meatProduct = meatProduct;
	vegetable=null;
	fruit=null;
	milkProduct=null;
	eggProduct=null;
	spice=null;
    }
    private Product(MilkProduct milkProduct) {
	this.milkProduct = milkProduct;
	vegetable=null;
	fruit=null;
	meatProduct=null;
	eggProduct=null;
	spice=null;
    }
    private Product(EggProduct eggProduct) {
	this.eggProduct = eggProduct;
	vegetable=null;
	fruit=null;
	meatProduct=null;
	milkProduct=null;
	spice=null;
    }
    private Product(Spice spice) {
	this.spice = spice;
	vegetable=null;
	fruit=null;
	meatProduct=null;
	milkProduct=null;
	eggProduct=null;
    }
    
  
    
    
}
